<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let input ="第1章对JavaScript进行了概述性的介绍，从本章开始将对JavaScript进行深入讨论，并分析JavaScript的核心ECMAScript，让读者从底层了解JavaScript，如JavaScript的基本语法、变量、关键字、保留字、语句、函数等";
        let ser = "JavaScript";
        let arr1 = input.split(ser).join();
        console.log(arr1);
        let time = (input.length-arr1.length)/ser.length;
        console.log(time);       
    </script>
</head>
<body>
    
</body>
</html>